home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
routines
/
4096 colours.amos
/
4096 colours.amosSourceCode
Wrap
AMOS Source Code
|
1990-01-25
|
9KB
|
163 lines
Screen Open 2,350,300,4096,Lowres
Screen Display 2,118,40,350,300
Limit Mouse 118,40 To 450,300
Curs Off
Cls 2 : Pen(0) : Paper 2 : Ink 0
Box 0,7 To 45,27 : Box 47,7 To 92,27
Box 94,7 To 139,27 : Box 141,7 To 186,27
Box 188,7 To 233,27 : Box 235,7 To 280,27
Box 282,7 To 327,27
Box 0,40 To 45,60 : Box 47,40 To 92,60
Box 94,40 To 139,60 : Box 141,40 To 186,60
Box 188,40 To 233,60 : Box 235,40 To 280,60
Box 282,40 To 327,60
Box 0,74 To 45,94 : Box 47,74 To 92,94
Box 94,74 To 139,94 : Box 141,74 To 186,94
Box 188,74 To 233,94 : Box 235,74 To 280,94
Box 282,74 To 327,94
Box 0,105 To 45,125 : Box 47,105 To 92,125
Box 94,105 To 139,125 : Box 141,105 To 186,125
Box 188,105 To 233,125 : Box 235,105 To 280,125
Box 282,105 To 327,125
Box 0,136 To 45,156 : Box 47,136 To 92,156
Box 94,136 To 139,156 : Box 141,136 To 186,156
Box 188,136 To 233,156 : Box 235,136 To 280,156
Box 282,136 To 327,156
Box 0,169 To 45,189 : Box 47,169 To 92,189
Box 94,169 To 139,189 : Box 141,169 To 186,189
Box 188,169 To 233,189 : Box 235,169 To 280,189
Box 282,169 To 327,189
Box 0,200 To 45,220 : Box 47,200 To 92,220
Box 94,200 To 139,220 : Box 141,200 To 186,220
Box 188,200 To 233,220 : Box 235,200 To 280,220
Box 282,200 To 327,220
Box 300,240 To 320,250
Locate 37,29 : Print "Exit"
ST:
Locate 2,29 : Print Space$(30)
Locate 2,30 : Print Space$(30)
Locate 2,29 : Print "Select colour number"
Locate 2,30 : Input "and press return ";C$
C=Val(C$)
If C>4096 Then Goto ST
Locate 2,29 : Print "Select position and "
Locate 2,30 : Print "press LH button or exit"
Gosub CO
Goto ST
ED:
Cls
Edit
Return
CO:
While Mouse Key=0 : Wend
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
If X>300 and Y>240 Then Goto SQ
Gosub DK : Gosub CA : Goto ST
Goto CO
SQ:
Ink 1 : Bar 301,241 To 319,249
Wait 10 :
Ink 0 : Bar 301,241 To 319,249
Cls : Edit
CA:
If A$="A1" Then Ink C : Bar 1,8 To 44,26 : Locate 1,4 : Print Space$(5) : Locate 1,4 : Print C$
If A$="A2" Then Ink C : Bar 48,8 To 91,26 : Locate 6,4 : Print Space$(5) : Locate 6,4 : Print C$
If A$="A3" Then Ink C : Bar 95,8 To 138,26 : Locate 12,4 : Print Space$(5) : Locate 12,4 : Print C$
If A$="A4" Then Ink C : Bar 142,8 To 185,26 : Locate 18,4 : Print Space$(5) : Locate 18,4 : Print C$
If A$="A5" Then Ink C : Bar 189,8 To 232,26 : Locate 24,4 : Print Space$(5) : Locate 24,4 : Print C$
If A$="A6" Then Ink C : Bar 236,8 To 279,26 : Locate 30,4 : Print Space$(5) : Locate 30,4 : Print C$
If A$="A7" Then Ink C : Bar 283,8 To 327,26 : Locate 36,4 : Print Space$(5) : Locate 36,4 : Print C$
If A$="B1" Then Ink C : Bar 1,41 To 44,59 : Locate 1,8 : Print Space$(5) : Locate 1,8 : Print C$
If A$="B2" Then Ink C : Bar 48,41 To 91,59 : Locate 6,8 : Print Space$(5) : Locate 6,8 : Print C$
If A$="B3" Then Ink C : Bar 95,41 To 138,59 : Locate 12,8 : Print Space$(5) : Locate 12,8 : Print C$
If A$="B4" Then Ink C : Bar 142,41 To 185,59 : Locate 18,8 : Print Space$(5) : Locate 18,8 : Print C$
If A$="B5" Then Ink C : Bar 189,41 To 232,59 : Locate 24,8 : Print Space$(5) : Locate 24,8 : Print C$
If A$="B6" Then Ink C : Bar 236,41 To 279,59 : Locate 30,8 : Print Space$(5) : Locate 30,8 : Print C$
If A$="B7" Then Ink C : Bar 283,41 To 326,59 : Locate 36,8 : Print Space$(5) : Locate 36,8 : Print C$
If A$="C1" Then Ink C : Bar 1,75 To 44,93 : Locate 1,12 : Print Space$(5) : Locate 1,12 : Print C$
If A$="C2" Then Ink C : Bar 48,75 To 91,93 : Locate 6,12 : Print Space$(5) : Locate 6,12 : Print C$
If A$="C3" Then Ink C : Bar 95,75 To 138,93 : Locate 12,12 : Print Space$(5) : Locate 12,12 : Print C$
If A$="C4" Then Ink C : Bar 142,75 To 185,93 : Locate 18,12 : Print Space$(5) : Locate 18,12 : Print C$
If A$="C5" Then Ink C : Bar 189,75 To 232,93 : Locate 24,12 : Print Space$(5) : Locate 24,12 : Print C$
If A$="C6" Then Ink C : Bar 236,75 To 279,93 : Locate 30,12 : Print Space$(5) : Locate 30,12 : Print C$
If A$="C7" Then Ink C : Bar 283,75 To 326,93 : Locate 36,12 : Print Space$(5) : Locate 36,12 : Print C$
If A$="D1" Then Ink C : Bar 1,106 To 44,124 : Locate 1,16 : Print Space$(5) : Locate 1,16 : Print C$
If A$="D2" Then Ink C : Bar 48,106 To 91,124 : Locate 6,16 : Print Space$(5) : Locate 6,16 : Print C$
If A$="D3" Then Ink C : Bar 95,106 To 138,124 : Locate 12,16 : Print Space$(5) : Locate 12,16 : Print C$
If A$="D4" Then Ink C : Bar 142,106 To 185,124 : Locate 18,16 : Print Space$(5) : Locate 18,16 : Print C$
If A$="D5" Then Ink C : Bar 189,106 To 232,124 : Locate 24,16 : Print Space$(5) : Locate 24,16 : Print C$
If A$="D6" Then Ink C : Bar 236,106 To 279,124 : Locate 30,16 : Print Space$(5) : Locate 30,16 : Print C$
If A$="D7" Then Ink C : Bar 283,106 To 326,124 : Locate 36,16 : Print Space$(5) : Locate 36,16 : Print C$
If A$="E1" Then Ink C : Bar 1,137 To 44,155 : Locate 1,20 : Print Space$(5) : Locate 1,20 : Print C$
If A$="E2" Then Ink C : Bar 48,137 To 91,155 : Locate 6,20 : Print Space$(5) : Locate 6,20 : Print C$
If A$="E3" Then Ink C : Bar 95,137 To 138,155 : Locate 12,20 : Print Space$(5) : Locate 12,20 : Print C$
If A$="E4" Then Ink C : Bar 142,137 To 185,155 : Locate 18,20 : Print Space$(5) : Locate 18,20 : Print C$
If A$="E5" Then Ink C : Bar 189,137 To 232,155 : Locate 24,20 : Print Space$(5) : Locate 24,20 : Print C$
If A$="E6" Then Ink C : Bar 236,137 To 279,155 : Locate 30,20 : Print Space$(5) : Locate 30,20 : Print C$
If A$="E7" Then Ink C : Bar 283,137 To 326,155 : Locate 36,20 : Print Space$(5) : Locate 36,20 : Print C$
If A$="F1" Then Ink C : Bar 1,170 To 44,188 : Locate 1,24 : Print Space$(5) : Locate 1,24 : Print C$
If A$="F2" Then Ink C : Bar 48,170 To 91,188 : Locate 6,24 : Print Space$(5) : Locate 6,24 : Print C$
If A$="F3" Then Ink C : Bar 95,170 To 138,188 : Locate 12,24 : Print Space$(5) : Locate 12,24 : Print C$
If A$="F4" Then Ink C : Bar 142,170 To 185,188 : Locate 18,24 : Print Space$(5) : Locate 18,24 : Print C$
If A$="F5" Then Ink C : Bar 189,170 To 232,188 : Locate 24,24 : Print Space$(5) : Locate 24,24 : Print C$
If A$="F6" Then Ink C : Bar 236,170 To 279,188 : Locate 30,24 : Print Space$(5) : Locate 30,24 : Print C$
If A$="F7" Then Ink C : Bar 283,170 To 326,188 : Locate 36,24 : Print Space$(5) : Locate 36,24 : Print C$
If A$="G1" Then Ink C : Bar 1,201 To 44,219 : Locate 1,28 : Print Space$(5) : Locate 1,28 : Print C$
If A$="G2" Then Ink C : Bar 48,201 To 91,219 : Locate 6,28 : Print Space$(5) : Locate 6,28 : Print C$
If A$="G3" Then Ink C : Bar 95,201 To 138,219 : Locate 12,28 : Print Space$(5) : Locate 12,28 : Print C$
If A$="G4" Then Ink C : Bar 142,201 To 185,219 : Locate 18,28 : Print Space$(5) : Locate 18,28 : Print C$
If A$="G5" Then Ink C : Bar 189,201 To 232,219 : Locate 24,28 : Print Space$(5) : Locate 24,28 : Print C$
If A$="G6" Then Ink C : Bar 236,201 To 279,219 : Locate 30,28 : Print Space$(5) : Locate 30,28 : Print C$
If A$="G7" Then Ink C : Bar 283,201 To 326,219 : Locate 36,28 : Print Space$(5) : Locate 36,28 : Print C$
Return
DK:
If X>0 and X<46 and Y>7 and Y<27 Then A$="A1"
If X>47 and X<92 and Y>7 and Y<27 Then A$="A2"
If X>94 and X<139 and Y>7 and Y<27 Then A$="A3"
If X>141 and X<186 and Y>7 and Y<27 Then A$="A4"
If X>188 and X<233 and Y>7 and Y<27 Then A$="A5"
If X>235 and X<280 and Y>7 and Y<27 Then A$="A6"
If X>282 and X<327 and Y>7 and Y<27 Then A$="A7"
If X>0 and X<46 and Y>40 and Y<60 Then A$="B1"
If X>47 and X<92 and Y>40 and Y<60 Then A$="B2"
If X>94 and X<139 and Y>40 and Y<60 Then A$="B3"
If X>141 and X<186 and Y>40 and Y<60 Then A$="B4"
If X>188 and X<233 and Y>40 and Y<60 Then A$="B5"
If X>235 and X<280 and Y>40 and Y<60 Then A$="B6"
If X>282 and X<327 and Y>40 and Y<60 Then A$="B7"
If X>0 and X<46 and Y>74 and Y<94 Then A$="C1"
If X>47 and X<92 and Y>74 and Y<94 Then A$="C2"
If X>94 and X<139 and Y>74 and Y<94 Then A$="C3"
If X>141 and X<186 and Y>74 and Y<94 Then A$="C4"
If X>188 and X<233 and Y>74 and Y<94 Then A$="C5"
If X>235 and X<280 and Y>74 and Y<94 Then A$="C6"
If X>282 and X<327 and Y>74 and Y<94 Then A$="C7"
If X>0 and X<46 and Y>105 and Y<125 Then A$="D1"
If X>47 and X<92 and Y>105 and Y<125 Then A$="D2"
If X>94 and X<139 and Y>105 and Y<125 Then A$="D3"
If X>141 and X<186 and Y>105 and Y<125 Then A$="D4"
If X>188 and X<233 and Y>105 and Y<125 Then A$="D5"
If X>235 and X<280 and Y>105 and Y<125 Then A$="D6"
If X>282 and X<327 and Y>105 and Y<125 Then A$="D7"
If X>0 and X<46 and Y>136 and Y<156 Then A$="E1"
If X>47 and X<92 and Y>136 and Y<156 Then A$="E2"
If X>94 and X<139 and Y>136 and Y<156 Then A$="E3"
If X>141 and X<186 and Y>136 and Y<156 Then A$="E4"
If X>188 and X<233 and Y>136 and Y<156 Then A$="E5"
If X>235 and X<280 and Y>136 and Y<156 Then A$="E6"
If X>282 and X<327 and Y>136 and Y<156 Then A$="E7"
If X>0 and X<46 and Y>169 and Y<189 Then A$="F1"
If X>47 and X<92 and Y>169 and Y<189 Then A$="F2"
If X>94 and X<139 and Y>169 and Y<189 Then A$="F3"
If X>141 and X<186 and Y>169 and Y<189 Then A$="F4"
If X>188 and X<233 and Y>169 and Y<189 Then A$="F5"
If X>235 and X<280 and Y>169 and Y<189 Then A$="F6"
If X>282 and X<327 and Y>169 and Y<189 Then A$="F7"
If X>0 and X<46 and Y>200 and Y<220 Then A$="G1"
If X>47 and X<92 and Y>200 and Y<220 Then A$="G2"
If X>94 and X<139 and Y>200 and Y<220 Then A$="G3"
If X>141 and X<186 and Y>200 and Y<220 Then A$="G4"
If X>188 and X<233 and Y>200 and Y<220 Then A$="G5"
If X>235 and X<280 and Y>200 and Y<220 Then A$="G6"
If X>282 and X<327 and Y>200 and Y<220 Then A$="G7"
Return